<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <script src="./vue.js"></script>
</head>

<body>
  <div id="app">
    {{name}}
    <cpn><button>按钮</button></cpn>
    <cpn><i>aaa</i></cpn>
    <cpn>
      <h1>asdf</h1>
    </cpn>
    <cpn></cpn>
    <cpn></cpn>
    <cpn></cpn>
  </div>
  <template id="cpn">
    <div>
      <h1>2222</h1>
      <p>dsfasdf</p>
      <slot>
        <p>ddddd</p>
      </slot>
    </div>
  </template>
  <script>
    var vm = new Vue({
      el: '#app',
      data: { name: 'Taec' },
      components: {
        cpn: {
          template: "#cpn",
        }
      }
    })
  </script>
</body>

</html>